import request from '../../utils/request'
import { GET_MOMENT_COMMENT } from '../../constance/URL'
export const getMomentComment = function(params) {
  return request({
    url: GET_MOMENT_COMMENT,
    method: 'get',
    params
  })
}
export const publishedComment = function(data) {
  return request({
    url: GET_MOMENT_COMMENT,
    method: 'post',
    data
  })
}

export const comment2comment = function(id, data) {
  return request({
    url: GET_MOMENT_COMMENT + '/' + id + '/reply',
    method: 'post',
    data
  })
}
